package com.yx.springboot;

import com.yx.springboot.service.IUserService;
import com.yx.springboot.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootApplication {

    public static void main(String[] args) {
//        SpringApplication.run(SpringbootApplication.class, args);
        ConfigurableApplicationContext ioc = SpringApplication.run(SpringbootApplication.class, args);
        IUserService userService = ioc.getBean(IUserService.class);
//        IUserService userService =new UserService();
        userService.getUser();
    }

}
